#include<cmath>
#include <iomanip>
#include <iostream>
using namespace std;
void ans(double x_1,double y_1,double x_2,double y_2,double x_3,double y_3) {
	double a = sqrt(pow(x_1-x_2,2)+pow(y_1-y_2,2));
	double b = sqrt(pow(x_3-x_2,2)+pow(y_3-y_2,2));
	double c = sqrt(pow(x_1-x_3,2)+pow(y_1-y_3,2));
	if(a + b > c && a + c > b && b + c > a) {
		double l = (a + b + c)/2;
		double area = sqrt(l*(l-a)*(l-b)*(l-c));
		cout<<"L = "<<fixed<<setprecision(2)<<l*2<<", A = "<<fixed<<setprecision(2)<<area<<endl;
	}else{
		cout<<"Impossible"<<endl;
	}
}
int main() {
	double x_1,y_1,x_2,y_2,x_3,y_3;
	cin>>x_1>>y_1>>x_2>>y_2>>x_3>>y_3;
	ans(x_1,y_1,x_2,y_2,x_3,y_3);
	return 0;
}
